/*
 * @Description:
 * @Version: 2.0
 * @Autor: snzo.chen
 * @Date: 2023-11-20 11:25:07
 * @LastEditors: snzo.chen
 * @LastEditTime: 2023-12-14 09:29:55
 */
import { RouteRecordRaw } from 'vue-router';

const moduleName = 'system';
const routes: Array<RouteRecordRaw> = [
  {
    path: '/system',
    meta: {
      title: '系统设置',
    },
    children: [
      {
        path: 'manager',
        meta: {
          title: '权限管理',
        },
        children: [
          {
            path: 'user',
            name: `${moduleName}-manager-user`,
            component: () => import('@/views/system/manager/user/user.vue'),
            meta: { title: '人员管理', keepAlive: true },
          },
          {
            path: 'role',
            name: `${moduleName}-manager-role`,
            component: () => import('@/views/system/manager/role/role.vue'),
            meta: { title: '角色管理', keepAlive: true },
          },
          {
            path: 'auth',
            name: `${moduleName}-manager-auth`,
            component: () => import('@/views/system/manager/auth/auth.vue'),
            meta: { title: '权限管理', keepAlive: true },
          },
        ],
      },
      {
        path: 'product',
        name: `${moduleName}-product`,
        component: () => import('@/views/system/product/index.vue'),
        meta: {
          title: '项目管理',
        },
      },
      {
        path: 'verification',
        name: `${moduleName}-verification`,
        component: () => import('@/views/system/verification/index.vue'),
        meta: {
          title: '核销模块',
        },
      },
    ],
  },
];

export default routes;
